/* jshint indent: 1 */

module.exports = function(sequelize, DataTypes) {
	return sequelize.define('admin', {
		admin_id: {
			type: DataTypes.BIGINT,
			allowNull: false,
			primaryKey: true,
			autoIncrement: true
		},
		email: {
			type: DataTypes.STRING,
			allowNull: false
		},
		full_name: {
			type: DataTypes.STRING,
			allowNull: false
		},
		mobile: {
			type: DataTypes.STRING,
			allowNull: false
		},
		password: {
			type: DataTypes.STRING,
			allowNull: false
		},
		gmt_create: {
			type: DataTypes.DATE,
			allowNull: false
		},
		gmt_modified: {
			type: DataTypes.DATE,
			allowNull: false
		}
	}, {
		tableName: 'f_admin',
		timestamps: false,
		freezeTableName: false
	});
};
